package com.hzit.producer.dao;

import com.hzit.producer.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface StudentDao extends JpaRepository<Student,Integer>, JpaSpecificationExecutor<Student> {

	//1. 根据方法名生成对应的sql语句
	List<Student> findBySnameLikeAndAddrLike (String sname,String addr);
}
